//
//  Location.h
//  GPSRecord
//
//  Created by TianWan on 2017/1/7.
//  Copyright © 2017年 天玩. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <UIKit/UIKit.h>

@class Location;
@protocol LocationDelegate <NSObject>

- (void)Location:(Location *)location placemark:(CLPlacemark *)placemark;
- (void)Location:(Location *)location liveTime:(NSInteger)liveTime;
- (void)Location:(Location *)location coordinate:(CLLocationCoordinate2D)coordinate;
@end

@interface Location : NSObject

+ (Location *)shareLocation;
- (void)startLocation;
- (void)switchOff;
@property (nonatomic,assign)id <LocationDelegate>delegate;

@end
